#pragma once
/*=========================================================================

 medInria

 Copyright (c) INRIA 2013 - 2020. All rights reserved.
 See LICENSE.txt for details.
 
  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

=========================================================================*/

static const int Cardiac[256*3] = {

  73,				// red
  72,
  70,
  69,
  68,
  66,
  65,
  63,
  62,
  61,
  59,
  58,
  57,
  55,
  54,
  52,
  51,
  48,
  45,
  41,
  38,
  35,
  32,
  29,
  26,
  22,
  19,
  16,
  13,
  10,
  6,
  3,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  10,
  11,
  12,
  13,
  14,
  15,
  16,
  16,
  17,
  17,
  17,
  17,
  18,
  18,
  18,
  18,
  19,
  19,
  19,
  19,
  20,
  20,
  20,
  21,
  22,
  22,
  23,
  24,
  25,
  25,
  26,
  27,
  28,
  28,
  29,
  30,
  31,
  31,
  32,
  36,
  39,
  43,
  47,
  50,
  54,
  57,
  61,
  65,
  68,
  72,
  76,
  79,
  83,
  86,
  90,
  95,
  99,
  104,
  109,
  113,
  118,
  123,
  128,
  132,
  137,
  142,
  146,
  151,
  156,
  160,
  165,
  169,
  172,
  176,
  179,
  183,
  186,
  190,
  194,
  197,
  201,
  204,
  208,
  211,
  215,
  218,
  222,
  224,
  226,
  228,
  230,
  232,
  234,
  236,
  239,
  241,
  243,
  245,
  247,
  249,
  251,
  253,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  250,
  245,
  240,
  236,
  231,
  226,
  221,
  216,
  211,
  206,
  201,
  197,
  192,
  187,
  182,
  177,
  171,
  164,
  158,
  151,
  145,
  138,
  132,
  125,
  119,
  112,
  106,
  99,
  93,
  86,
  73,

  193,				// green
  195,
  197,
  198,
  200,
  202,
  204,
  206,
  208,
  209,
  211,
  213,
  215,
  217,
  218,
  220,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  222,
  216,
  211,
  205,
  200,
  194,
  188,
  183,
  177,
  171,
  166,
  160,
  155,
  149,
  143,
  138,
  132,
  128,
  125,
  121,
  118,
  114,
  110,
  107,
  103,
  99,
  96,
  92,
  89,
  85,
  81,
  78,
  74,
  70,
  67,
  63,
  60,
  56,
  52,
  49,
  45,
  41,
  38,
  34,
  31,
  27,
  23,
  20,
  16,
  15,
  14,
  13,
  12,
  11,
  10,
  9,
  8,
  7,
  6,
  5,
  4,
  3,
  2,
  1,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  2,
  4,
  6,
  8,
  10,
  12,
  14,
  17,
  19,
  21,
  23,
  25,
  27,
  29,
  31,
  33,
  37,
  41,
  45,
  50,
  54,
  58,
  62,
  66,
  70,
  74,
  78,
  83,
  87,
  91,
  95,
  99,
  103,
  107,
  111,
  116,
  120,
  124,
  128,
  132,
  136,
  140,
  144,
  149,
  153,
  157,
  161,
  165,
  170,
  174,
  179,
  184,
  188,
  193,
  197,
  202,
  207,
  211,
  216,
  221,
  225,
  230,
  234,
  239,
  238,
  237,
  236,
  235,
  234,
  233,
  232,
  231,
  229,
  228,
  227,
  226,
  225,
  224,
  223,
  222,
  220,
  218,
  217,
  215,
  213,
  211,
  209,
  208,
  206,
  204,
  202,
  200,
  198,
  197,
  193,

  3,				// blue
  12,
  20,
  29,
  37,
  46,
  54,
  63,
  71,
  80,
  88,
  97,
  105,
  114,
  122,
  131,
  139,
  146,
  154,
  161,
  168,
  175,
  183,
  190,
  197,
  204,
  212,
  219,
  226,
  233,
  241,
  248,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  255,
  253,
  252,
  250,
  249,
  247,
  246,
  244,
  243,
  241,
  239,
  238,
  236,
  235,
  233,
  232,
  230,
  229,
  227,
  226,
  224,
  223,
  221,
  220,
  218,
  217,
  215,
  214,
  212,
  211,
  209,
  208,
  206,
  203,
  201,
  198,
  196,
  193,
  191,
  188,
  186,
  183,
  180,
  178,
  175,
  173,
  170,
  168,
  165,
  163,
  161,
  159,
  157,
  155,
  153,
  151,
  149,
  146,
  144,
  142,
  140,
  138,
  136,
  134,
  132,
  127,
  123,
  118,
  113,
  109,
  104,
  99,
  95,
  90,
  85,
  80,
  76,
  71,
  66,
  62,
  57,
  53,
  50,
  46,
  43,
  39,
  36,
  32,
  29,
  25,
  21,
  18,
  14,
  11,
  7,
  4,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  1,
  2,
  2,
  3,
  4,
  5,
  5,
  6,
  7,
  8,
  8,
  9,
  10,
  11,
  11,
  12,
  11,
  11,
  10,
  10,
  9,
  9,
  8,
  8,
  7,
  6,
  6,
  5,
  5,
  4,
  3 
};


